package com.demo.modalframe3;

public class ModalityDemo {

    private Frame1 frame1;
    private Frame2 frame2;
    private Frame3 frame3;
    private Frame4 frame4;

    //start frames
    public void start() {
        frame1.setVisible(true);
        frame2.setVisible(true);
        frame3.setVisible(true);
        frame4.setVisible(true);
    }

    public void createAndShowGUI(){
        frame1 = new Frame1();
        frame2 = new Frame2();
        frame3 = new Frame3();
        frame4 = new Frame4();
    }
}
